package com.kakarote.admin.mapper;

import com.kakarote.admin.entity.PO.AdminDataAuthDept;
import com.kakarote.core.servlet.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 数据权限和部门关联表 Mapper 接口
 * </p>
 *
 * @author lizhihui
 * @since 2023-10-17
 */
public interface AdminDataAuthDeptMapper extends BaseMapper<AdminDataAuthDept> {

    List<AdminDataAuthDept> queryDeptByRoleId(@Param("roleId") Long roleId);

    List<Long> queryHumanResourcesCustomDeptId(@Param("userId") Long userId);
}
